﻿using System;
using System.Text;
using BioHlpLib;

namespace BioHlpLibTst
{
    class Program
    {
        static void Main(string[] args)
        {
            bool isLoggedOnUser = false;
            UInt32 rejectDetail = 0;
            Int32 result = 0;

            System.Console.WriteLine("Scan now ...");

            if (0 != (result = BioHlpNativeInterface.BHIdentifyAsLoggedOnUser(
                ref isLoggedOnUser,
                ref rejectDetail)))
            {
                System.Console.WriteLine(
                    "Failed {0} {1}", result, rejectDetail);
            }
            else if (true == isLoggedOnUser)
            {
                System.Console.WriteLine("Success!");
            }
            else
            {
                System.Console.WriteLine(
                    "Error: that's not the logged on user.");
            }
        }
    }
}
